<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h1>登录</h1>
<hr>
<p th:text="${errorInfo}" style="color: red"></p>
<form th:action="@{/login}" method="post">
    <p>用户名：<input type="text" name="username"></p>
    <p>密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password" name="password"></p>
    <p><input type="submit" value="登录"></p>
</form>
<a th:href="@{/index}" th:text="回到主页"></a>
<p>如果还没有账户？
    <a th:href="@{/toReg}" th:text="立即注册"></a>
</p>
</body>
</html>